home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Interactive 11
/
PC World Interactive 11.iso
/
share
/
multimed
/
MAINACT
/
DATA1.CAB
/
Script_Files
/
convdir.rex
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-05-04
|
2KB
|
28 lines
/**************************************************************
* *
* MainActor Rexx Script *
* *
* Converts all projects inside a directory to AVI. Shows *
* how to use LoadProjectPattern for automatic loading and *
* converting of whole directories. *
* *
* Last modified: 09/19/97, Written by: Markus Moenig *
* *
**************************************************************/
filepattern="e:\gfx\anims\quick\*.*" /* Substitute any other directory here */
DO WHILE LoadProjectPattern(filepattern) =0 /* This loop runs over all files */
BEGIN
name=GetProjectInfo("NAME") /* Name of the project */
newname=LEFT(name,LENGTH(name)-4,0) /* Cut off .??? from name */
filename="c:\"newname /* filename, write new files to c:\ */
format="AVI" /* Format */
codec="Cinepak" /* Use Cinepak */
frames="AllFrames" /* Save all frames of the anim */
width=0 /* Use original width */
height=0 /* Use original height */
say "Converting" GetProjectInfo("NAME") "to" filename "as" format "..."
Save( filename, format, codec, frames, width, height ) /* Save it ... */
END